package com.zidian.leader.common.util;

import android.app.ProgressDialog;
import android.content.Context;

import com.zidian.leader.MyApplication;

/**
 * Created by GongCheng on 2016/11/7.
 */

public class ProgressUtils {
    private static ProgressDialog progressDialog;

    public static void showProgress(Context context){
        progressDialog = new ProgressDialog(context);
        progressDialog.setMessage("加载中");
        progressDialog.show();
    }

    public static void hideProgress(){
        if (progressDialog == null) {
            return;
        }
        progressDialog.dismiss();
    }
}
